import request from '@/utils/request'

// 列表（分页）
export function pageList(query) {
  return request({
    url: '/system/enterprise/pageList',
    method: 'get',
    loading: true,
    params: query
  })
}

// 禁用/启动
export function changeStatus(id, status) {
  const data = {
    id,
    status
  }
  return request({
    url: '/system/enterprise/changeStatus',
    method: 'put',
    loading: true,
    data: data
  })
}

// 审核
export function audit(data) {
  return request({
    url: '/system/enterprise/audit',
    method: 'put',
    loading: true,
    data: data
  })
}

// 查询详细
export function getInfo(id) {
  return request({
    url: '/system/enterprise/' + id,
    method: 'get',
    loading: true
  })
}
